package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Produce_Shifts", description = "开结班表")
@TableName(value = "Produce_Shifts")
public class ProduceShifts extends FBaseEntity implements Serializable {

    
    @NotNull(message="[主键Id]不能为空")
    @ApiModelProperty("主键Id")
    @TableField(value = "iD")
    private Long iD;
    
    @NotNull(message="[日期]不能为空")
    @ApiModelProperty("日期")
    @TableField(value = "signDate")
    private Date signDate;
    
    @NotNull(message="[班次ID]不能为空")
    @ApiModelProperty("班次ID")
    @TableField(value = "shiftId")
    private Long shiftId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("班次名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "shiftNum")
    private String shiftNum;
    
    @NotNull(message="[开班人员]不能为空")
    @ApiModelProperty("开班人员")
    @TableField(value = "beginUserId")
    private Long beginUserId;
    
    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "currentFlag")
    private Long currentFlag;
    
    @NotNull(message="[开始时间]不能为空")
    @ApiModelProperty("开始时间")
    @TableField(value = "beginTime")
    private Date beginTime;
    
    @ApiModelProperty("结束时间")
    @TableField(value = "endTime")
    private Date endTime;
    
    @ApiModelProperty("结束人员")
    @TableField(value = "endUserId")
    private Long endUserId;
    
    @NotNull(message="[生产资源]不能为空")
    @ApiModelProperty("生产资源")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @ApiModelProperty("班组Id")
    @TableField(value = "groupID")
    private Long groupID;






}

